package com.origon.entities;

import java.io.Serializable;
import java.util.UUID;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;


/**
 * The persistent class for the productimage database table.
 * 
 */
@Entity
public class Productimage implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String id;

	private String description;

	private String name;	
	
	@ManyToOne
	@JoinColumn(name="ProductId")
	private Product product;
	

	public Productimage() {
		setId(UUID.randomUUID().toString());
	}

	
	public String getId() {
		return this.id;
	}

	public void setId(String string) {
		this.id = string;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

}